<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<template id="hello">
    <h1>{{msg}} {{user}}</h1>
</template>

<div id="app">
    <hello-component v-bind:user="user"></hello-component>
</div>

<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
<script>
    Vue.component('hello-component', {
        template: '#hello',
        data: function () {
            return {
                msg: 'Hello'
            }
        },
        props:['user']
    });

    new Vue({
        el: '#app',
        data: {
            user: 'hero'
        }
    });

</script>
</body>
</html>